home *** CD-ROM | disk | FTP | other *** search
- /*
- * PlaySID: Jukebox example
- *
- * rx jukebox "filename"
- *
- * or
- *
- * jukebox.rexx "filename"
- *
- */
-
- if(~show('l', 'rexxsupport.library'))then do
- if(~addlib( 'rexxsupport.library', 0, -30, 0))then do
- say "Could not open ARexx support library."
- exit 10
- end
- end
-
- file = 'file'
- parse arg data
-
- if open(file, data, 'r') then do
- address command "run SID:PlaySID"
- line = readln(file)
- do while ~eof(file)
- name = word(line, 1)
- tune = word(line, 2)
- time = word(line, 3)
- if SID_Load(name) then do
- say "Playing tune" tune "for" time "seconds in" name
- SID_SetTune(tune)
- SID_Play()
- Delay(time * 50)
- SID_Stop()
- end
- line = readln(file)
- end
- SID_Quit()
- call close(file)
- end
- else
- say "Unable to open file" data"."
-
-